class Category < ActiveRecord::Base
  
  has_many :book

  validates :name, presence: true
  validates_uniqueness_of :name
  attr_accessible :name, :description
end
